<template>
  <div class="container">
    <rich-text :nodes="content" :data-nodes="content"></rich-text>
  </div>
</template>

<script>
import htmlParser from "@/common/js/html-parser";
export default {
  data() {
    return {
      content: "",
    };
  },
  onLoad() {
    this.getSetting();
  },
  methods: {
    getSetting() {
      this.$api.sendRequest({
        url: "/api/member/accountexplain",
        data: {},
        success: (res) => {
          if (res.code == 0) {
            if (res.data.content) this.content = htmlParser(res.data.content);
          } else {
            this.$api.showToast({
              title: res.message,
            });
          }
        },
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.indexbg {
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 259rpx;
}

.fixHeader {
  position: fixed;
  top: 0;
  z-index: 9;
  width: 100%;
  box-sizing: border-box;
}
</style>
